const mongoose = require('mongoose')
const { mongopath } = require('../config/config.default')

async function main() {
  await mongoose.connect(mongopath)
}

main()
.then(res => {
  console.log('数据库连接成功....')
})
.catch(err => {
  console.log(err)
  console.log('数据库连接失败....')
}) 

module.exports = {

}